import unittest,HTMLTestRunner
from woniuboss_interface.case import login,business_customer,decode,employment,finance,resource,student_admin

if __name__ == '__main__':
    suite = unittest.TestSuite()
    li = [login,business_customer,decode,employment,finance,resource,student_admin]
    moder_name = []
    for name in li:
        loader = unittest.TestLoader().loadTestsFromModule(name)
        moder_name.append(loader)
        # print(moder_name)
    suite.addTests(moder_name)
    with open("../report/woniuboss2.5测试报告.html","w",encoding="utf-8") as f:
        runner = HTMLTestRunner.HTMLTestRunner(f)
        runner.run(suite)